<?php
declare (strict_types=1);

namespace app\api\controller;

use app\common\controller\IndexBase;
use app\common\controller\UserBase;
use app\common\helper\BaiDuAi;
use app\common\helper\DouYinHelper;
use app\common\helper\NetPay;
use app\common\helper\Printer;
use app\common\helper\SendSmsHelper;
use app\common\helper\SkinHelper;
use app\common\helper\WanX;
use app\common\logic\ArchivesLogic;
use app\common\model\Banner;
use app\common\model\Diggings;
use app\common\model\Factory;
use app\common\model\OrderOrder;
use app\common\model\OrderOther;
use app\common\model\OrderProject;
use app\common\model\Parts;
use app\common\model\Pay;
use app\common\model\PrintShare;
use think\facade\Db;
use think\facade\Env;
use think\facade\View;

class Index extends IndexBase
//class Index extends UserBase
{
    public function index()
    {
        return 1;
    }

    public function search()
    {
        return 1;
        $b = new BaiDuAi();
        $task_id = input('task_id');
        $result = $b->withData([
            "task_id" => $task_id
        ])->search();
        dump($result);
        $wan = new WanX();
        $task_id = input('task_id');
        dump($wan->search($task_id));
        return 1;
    }
    
    public function notify()
    {
        $pay = new NetPay();
        return $pay->notify();
    }
    
    public function refund_notify()
    {
        $pay = new NetPay();
        return $pay->refund_notify();
    }

    public function image()
    {
        return View::fetch();
    }
}
